<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import = "com.opensymphony.xwork2.ActionContext;" %>

<div class="page-header">
	<div class="page-header-content">
	<h3>Discussion threads</h3>
	</div>
</div>	

<div class="page-region">
	<div class="page-region-content">
		<div class="grid">
        <div class="row">
            <div class="span8">
            <s:iterator value="descdetails">
            <ul class="listview">
            
            <li class="" style="width: 100%;">
            <div class="data">
                <h4><s:property value="title"/></h4>
                <p><s:property value="description"/></p>
                <p>By <s:property value="owner_name"/></p>
                <p>Created On <s:property value="createdtime"/></p>
            </div>
        </li>

           
            <s:iterator value="disccomment">
            <li class="" style="width: 100%;">
            <div class="data">
                <h4><s:property value="comment"/></h4>
                <p>By <s:property value="username"/></p>
                <p>Commented On <s:property value="createdtime"/></p>
            </div>
        </li>

            </s:iterator>
            
            </ul>
            
            <!--  -->
            <s:form action="disccomment.action" method ="post" theme="simple" validate="true">
				
					 <div class="input-control text span7">
        				<s:textfield theme="simple" name="comment" placeholder="Write comment"/>
      				    <span class="helper"></span>
   					 </div>
   					 <s:hidden name="discussionID" value="%{id}" />
   					 <s:actionerror/>
   					 <s:submit theme="simple" value="Post"/>
				</s:form>
				 <s:fielderror></s:fielderror>
            <!--  -->
             </s:iterator>
            </div>
            <div class="sapn4"><h3>Recomended for you</h3>
            <ul class="listview">
            <s:iterator value="recdiscmodeltagbased">
            <div class="data">
                <a href="discthreadview.action?discID=<s:property value= "id"/> " >
                <s:property value="title"/></a>
                By <s:property value="owner_name"/>
            </div>

            </s:iterator>
            </ul>
            </div>
        </div>
        
    </div>
	</div>
</div>